package com.example.spinning.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.sql.Timestamp;

//半成品质量信息
@Table(name = "semi_product_quality")
public class SemiQuality {
    /**
     * 批号：每批纱所拥有的编号。
     * 品名：该批原料所要生产纱线的名称。
     * 日期：检测日期。
     * 并条条干CV（%）：二并和三并之前的条干均匀度。
     * 并条克重(g/5m)：每5米条子克重数。
     * 粗纱克重(g/10m)：每10米的粗纱克重数。
     */
    @Id
    private Long id;//每批纱线拥有的编号
    @Column
    private String batch_no;//该批原料所要生产的纱线的编号
    @Column
    private String name;//该批原料的名称
    @Column
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date date;//检测日期
    @Column
    private Float drawing_cv;//并条条干CV（%）
    @Column
    private Float drawing_weight;//并条克重(g/5m)
    @Column
    private Float roving_weight;//粗纱克重(g/10m)

    public SemiQuality() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Float getDrawing_cv() {
        return drawing_cv;
    }

    public void setDrawing_cv(Float drawing_cv) {
        this.drawing_cv = drawing_cv;
    }

    public Float getDrawing_weight() {
        return drawing_weight;
    }

    public void setDrawing_weight(Float drawing_weight) {
        this.drawing_weight = drawing_weight;
    }

    public Float getRoving_weight() {
        return roving_weight;
    }

    public void setRoving_weight(Float roving_weight) {
        this.roving_weight = roving_weight;
    }
}
